package com.zhangtai.modules.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

	

/**
 * 菜单管理
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-08-10 15:58:21
 */
@Data
@TableName("sys_menu")
public class MenuEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long menuId;
			/**
		 * 父菜单ID，一级菜单为0
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long parentId;
			/**
		 * 菜单名称
		 */
			private String name;
			/**
		 * 菜单URL
		 */
			private String url;
			/**
		 * 授权(多个用逗号分隔，如：user:list,user:create)
		 */
			private String perms;
			/**
		 * 类型   0：目录   1：菜单   2：按钮
		 */
			private Integer type;
			/**
		 * 菜单图标
		 */
			private String icon;
			/**
		 * 排序
		 */
			private Integer orderNum;
			/**
			 * 是否删除
			 */
			private Integer isDelete;
			private Date createTime;
	
}
